home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / data.ssa / unit ai scripts_missile base.tai < prev    next >
Encoding:
Text File  |  2001-09-29  |  533 b   |  32 lines

  1. //
  2. // Defending Building unit AI file
  3. //
  4. // Behaviors:
  5. //
  6. //        Track enemy units in line of sight until in weapon range, then attack.
  7. //
  8. //    Notes:
  9. //
  10. //    Known Problems:
  11. //
  12.  
  13. // attack enemy unit unti it dies or moves away
  14. AttackEnemyUnit
  15. {
  16.     anyof(EnemyUnitDestroyed,CeaseFire,UnitNotOnMap) true(Idle)
  17.     UnitInWeaponRange false(Idle)
  18.     AlwaysTrue true(WaitForReload)
  19. }
  20.  
  21. WaitForReload
  22. {
  23.     Reloaded true(AttackEnemyUnit)
  24. }
  25.  
  26. InitialAttackState
  27. {
  28.     Reloaded true(AttackEnemyUnit)
  29. }
  30.  
  31. #include("Generic Death.tai")
  32.